package com.baoy.cloud.xxx.sso.service.impl;

import com.baoy.cloud.xxx.sso.model.User;
import com.baoy.cloud.xxx.sso.dao.UserMapper;
import com.baoy.cloud.xxx.sso.service.UserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author baoy.bao
 * @since 2018-07-27
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public Set<String> queryPermissionByUserId(String userId) {
        return userMapper.queryPerByUserId(userId);
    }

    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }
}
